#include "Actions/ActionScaleObject.h"

using namespace Ogre;
ActionScaleObject::ActionScaleObject(Ogre::SceneNode *node){

	mCurrentObject = node;
}

ActionScaleObject::~ActionScaleObject(){}

void ActionScaleObject::mouseMoved(const OIS::MouseEvent &evt){

	//mirar si es scroll positivo o negativo, comprobar el numero
	if(evt.state.Z.rel!=0)
		mCurrentObject->scale(1+0.001*evt.state.Z.rel,1+0.001*evt.state.Z.rel,1+0.001*evt.state.Z.rel);
	//else
		//mCurrentObject->scale(evt.state.Z.rel,evt.state.Z.rel,evt.state.Z.rel);
}